﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace th21
{
    class NhanVienBienChe : NhanVien
    {
        private String Manv;
        private double Hesl;
        private double Lcb;


        public String MANV
        {
            get { return this.Manv; }
            set { this.Manv = value; }
        }
        public double HESL
        {
            get { return this.Hesl; }
            set { this.Hesl = value; }
        }
        public double LCB
        {
            get { return this.Lcb; }
            set { this.Lcb = value; }
        }



        public NhanVienBienChe()
            : base()
        {
            this.Manv = null;
            this.Lcb = 0;
            this.Hesl = 0;

        }

        public NhanVienBienChe(String HT, String NS, String GT, long CM, String MNV, double HSL, double LCB)
            : base(HT,NS,GT,CM)
        {
            this.Manv = MNV;
            this.Hesl = HESL;
            this.Lcb = LCB;

        }
        public void Nhap()
        {
            base.Nhap();
            Console.Write("Ma nhan vien:");
            this.Manv = Console.ReadLine();
            Console.Write("Luong co ban:");
            this.Lcb = Convert.ToDouble( Console.ReadLine());
            Console.Write("He so luong:");
            this.Hesl = Convert.ToDouble(Console.ReadLine());
        }
        public void Xuat()
        {
            base.Xuat();
            Console.Write("\n Ma nhan vien:" + this.Manv);
            Console.Write("\n He so luong:" + this.Hesl);
            Console.Write("\n Luong co ban:" + this.Lcb);
            Console.Write("\n Phu cap:" + this.Phucap());
            Console.Write("\n Thuc linh:" + this.Thuclinh());

        }
        public double Phucap()
        {
            return (10 * Lcb / 100);
        }
        public double Thuclinh()
        {
            return (Hesl * Lcb + Phucap());
        }

    }
}

